<nav class="navbar navbar-default  navbar-static-top" role="navigation" style="margin-bottom: 0">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">自适应导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>

        <a class="navbar-brand" href="#">后台管理系统</a>
    </div>
    <!-- /.navbar-header -->

    <ul class="nav navbar-top-links  navbar-right">
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-messages">
                <li>
                    <a href="#">
                        <div>
                            <strong>Kobe</strong>
                                    <span class="pull-right text-muted">
                                        <em>昨天</em>
                                    </span>
                        </div>
                        <div>周六一起去北理工打球！！！</div>
                    </a>
                </li>
                <li class="divider"></li>
                <li>
                    <a class="text-center" href="#">
                        <strong>所有信息</strong>
                        <i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </ul>
            <!-- /.dropdown-messages -->
        </li>
        <!-- /.dropdown -->
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-alerts">
                <li>
                    <a href="#">
                        <div>
                            <i class="fa fa-comment fa-fw"></i> 新信息
                            <span class="pull-right text-muted small">4 分钟前</span>
                        </div>
                    </a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="#">
                        <div>
                            <i class="fa fa-twitter fa-fw"></i> 3 个关注
                            <span class="pull-right text-muted small">12 分钟前</span>
                        </div>
                    </a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="#">
                        <div>
                            <i class="fa fa-envelope fa-fw"></i> 信息已发送
                            <span class="pull-right text-muted small">4 分钟前</span>
                        </div>
                    </a>
                </li>

                <li class="divider"></li>
                <li>
                    <a href="#">
                        <div>
                            <i class="fa fa-upload fa-fw"></i> 服务器重新启动
                            <span class="pull-right text-muted small">10 分钟前</span>
                        </div>
                    </a>
                </li>
                <li class="divider"></li>
                <li>
                    <a class="text-center" href="#">
                        <strong>查看所有通知</strong>
                        <i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </ul>
            <!-- /.dropdown-alerts -->
        </li>
        <!-- /.dropdown -->
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <i class="fa fa-user fa-fw"></i>
                <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user">
                <li><a href="#"><i class="fa fa-user fa-fw"></i> 用户配置</a>
                </li>
                <li><a href="#"><i class="fa fa-gear fa-fw"></i> 设置</a>
                </li>
                <li class="divider"></li>
                <li><a href="{:U('Login/LoginExit')}"><i class="fa fa-sign-out fa-fw"></i> 退出</a>
                </li>
            </ul>
            <!-- /.dropdown-user -->
        </li>
        <!-- /.dropdown -->

    </ul>
    <!-- /.navbar-top-links -->

    <div class="navbar-default  sidebar" role="navigation">
        <div class="sidebar-nav navbar-collapse">
            <ul class="nav" id="side-menu">
                <li class="sidebar-search">
                    <div class="input-group custom-search-form">
                        <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                    </div>
                    <!-- /input-group -->
                </li>

                <li>
                    <a href="#"><i class="fa fa-gift fa-fw"></i>图书管理
                        <if condition="outS('ALL_BOOK_RED') gt 0">
                            <span style="color: red" class="badge">{:outS('ALL_BOOK_RED')}</span>
                        </if>
                        <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">

                        <li>
                            <a href="{:U('Book/Index')}">图书列表</a>
                        </li>

                        <li>
                            <a href="{:U('SBook/Index')}">不知道要不要的书</a>
                        </li>
                        <li>
                            <a href="{:U('Book/TzListIndex')}">
                                套装书列表
                                <if condition="outS('TZBOOK_RED') gt 0">
                                    <span style="color: red" class="badge">{:outS('TZBOOK_RED')}</span>
                                </if>
                            </a>
                        </li>
                        <li>
                            <a href="{:U('Book/EditBookIndex')}">添加图书</a>
                        </li>
                        <li>
                            <a href="{:U('GetOrder/BookIndex')}">平台拒收的书籍</a>
                        </li>
                        <!--<li>-->
                        <!--<a href="{:U('Book/AddAllBookIndex')}">批量添加图书</a>-->
                        <!--</li>-->
                    </ul>
                    <!-- /.nav-second-level -->
                </li>
                <if condition="outS('USER_NAME') == 'mao'">
                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>完善书籍<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('ISBNAPI/BookIndex')}">完善主库书籍</a>
                            </li>
                            <li>
                                <a href="{:U('ISBNAPI/SBookIndex')}">完善未知书籍</a>
                            </li>
                        </ul>
                    </li>
                </if>

                <li>
                    <a><i class="fa fa-dashboard fa-fw"></i>缺货到货通知<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{:U('BookTZ/Index')}">到货通知列表</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a><i class="fa fa-dashboard fa-fw"></i>仓库管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{:U('StoreHouse/Index')}">仓库管理</a>
                        </li>
                        <li>
                            <a href="{:U('BookCaseModel/Index')}">书架模型</a>
                        </li>
                    </ul>
                </li>
                <if condition="outS('LEVEL') gt 1">

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>订单管理
                            <if condition="outS('ALL_ORDER_RED') gt 0">
                                <span style="color: red" class="badge">{:outS('ALL_ORDER_RED')}</span>
                            </if>
                            <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Order/Index')}?order_type=2">卖书订单
                                    <if condition="outS('BUY_ORDER_RED') gt 0">
                                        <span style="color: red" class="badge">{:outS('BUY_ORDER_RED')}</span>
                                    </if>
                                </a>
                            </li>
                            <li>
                                <a href="{:U('GetOrder/Index')}?order_type=1">收书订单
                                    <if condition="outS('HS_ORDER_RED') gt 0">
                                        <span style="color: red" class="badge">{:outS('HS_ORDER_RED')}</span>
                                    </if>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>字典管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('region/Index')}">字典管理</a>
                            </li>
                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>书篮子管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Basket/Index')}">查看书篮子</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>用户管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('User/Index')}">所有用户</a>
                            </li>
                            <if condition="outS('USER_NAME') == 'mao'">
                                <li>
                                    <a href="{:U('User/WxAllUser')}">拉取所有用户</a>
                                </li>
                            </if>

                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>平台资金流水<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Cost/cost_log_index')}">用户买书消费记录</a>
                            </li>
                            <li>
                                <a href="{:U('Cost/cost_log_index')}?TYPE=2">用户卖书资金记录</a>
                            </li>
                            <li>
                                <a href="{:U('Cost/cost_log_index')}?TYPE=3">用户充值资金记录</a>
                            </li>
                            <li>
                                <a href="{:U('Cost/cost_log_index')}?TYPE=4">用户提现资金记录</a>
                            </li>
                            <li>
                                <a href="{:U('Cost/cost_log_index')}?TYPE=5">后台余额操作资金记录</a>
                            </li>
                        </ul>
                    </li>


                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>运营管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Card/Index')}?STATE=1">充值卡</a>
                            </li>
                            <li>
                                <a href="{:U('Card/Card_log_Index')}">充值记录</a>
                            </li>
                            <li>
                                <a href="{:U('Coupon/Index')}?STATE=2">优惠劵</a>
                            </li>
                            <li>
                                <a href="{:U('Coupon/Card_log_Index')}?STATE=2">优惠劵记录</a>
                            </li>
                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>微信消息模板<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('WxSendMsg/Index')}">开团通知</a>
                            </li>

                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>团购管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('TgActivity/Index')}">有赞团购信息设置列表</a>
                            </li>

                        </ul>
                    </li>

                    <li>
                        <a><i class="fa fa-dashboard fa-fw"></i>横幅广告图管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Banner/Index')}?banner_url_type=4">轮播图横幅管理</a>
                            </li>
                            <li>
                                <a href="{:U('Banner/Index')}?banner_url_type=1">主题书单横幅管理</a>
                            </li>

                        </ul>
                    </li>


                    <li>
                        <a href="#"><i class="fa fa-gift fa-fw"></i>文章管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Articles/index')}">文章列表</a>
                            </li>
                            <li>
                                <a href="{:U('Articles/EditAddIndex')}">添加文章</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>

                    <li>
                        <a href="#"><i class="fa fa-gift fa-fw"></i>快递模板<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{:U('Postage/index')}">模板列表</a>
                            </li>
                            <li>
                                <a href="{:U('Postage/Bookindex')}">包邮书籍</a>
                            </li>
                            <li>
                                <a href="{:U('Postage/TsAddress')}">特殊区域邮费设置</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>

                </if>
                <li>
                    <a href="#"><i class="fa fa-gift fa-fw"></i>系统管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">

                        <li>
                            <a href="{:U('Login/UpdatePWDIndex')}">修改密码</a>
                        </li>
                        <li>
                            <a href="{:U('Login/eixt')}">退出</a>
                        </li>
                    </ul>
                    <!-- /.nav-second-level -->
                </li>

            </ul>
        </div>
        <!-- /.sidebar-collapse -->
    </div>
    <!-- /.navbar-static-side -->
</nav>
